package com

class EnderecoDaObra {

    static constraints = {
		rua(blank: false)
		numero(blank: false, size:1..5)
		cep(blank: false)
		loteamento(blank: false)
		numData(blank: false)
		quadra(blank: false)
		
    }
	
	String loteamento
	String rua
	Integer numero
	String cep
	Integer numData
	String quadra
	
	static belongsTo = Obra
	
	public String toString(){
		return "${loteamento}"+" ${rua}"
	}
}
